<@css href="/easyui/themes/default/easyui.css"/>
<@css href="/easyui/themes/icon.css"/>
<@js src="/easyui/jquery.easyui.min.js"/><@jsRender/>
<!--付款信息-->
 <div class="openBox ">
	<h3 class="mt20"><i class="jtIco"></i>付款信息</h3>
	<form action="<@url value='/refund/update' />" class="action-ajax-form" method="post">
		<input name="id" type="hidden" value="${payEntity.id}">
		<input name="nodeCode" type="hidden" value="${nodeCode}">
		<div class="detaiTab">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
	      		<tbody>
	      				<tr >
	      				<td align="right" class="bg" width="15%">收款人<span style="color: red;">*</span>：</td>
	      				<td><input  class="bn" type="text" name="payeeName" value="${payEntity.payeeName}" readonly="true" ></td>
	      				<td align="right" class="bg">付款金额<span style="color: red;">*</span>：</td>
	      				<td><input type="text" name="payAmount" value="${payEntity.payAmount}" readonly = "disabled"
	      				           class="bn inputNum" id="payAmount"/>
	      				    <span class="action-field-error" style="color:red;" for="payAmount"></span>
	      				</td>
	      			</tr>
	      			<tr >
	      				<td align="right" class="bg" width="15%">收款账户<span style="color: red;">*</span>：</td>
	      				<td><input type="text" class="bn" name="collectionAccount" value="${payEntity.collectionAccount}" readonly="true"></td>
	      				<td align="right" class="bg">收款开户行<span style="color: red;">*</span>：</td>
	      				<td><input type="text" class="bn" name="collectionBankName" value="${payEntity.collectionBankName}" readonly="true" ></td>
	      			</tr>
	      			<tr >
	      				<td align="right" class="bg" width="15%">汇入行地址<span style="color: red;">*</span>：</td>
	      				<td ><input type="text" class="bn" style="width:350px;" name="collectionBankAddress" value="${payEntity.collectionBankAddress}" readonly="true"></td>
	      				<td align="right" class="bg" >代偿类型<span style="color: red;">*</span>：</td>
	      				<td ><@select dataSouceType="BAD_LOAN_TYPE_DDC" name="loanType2" value="${payEntity.loanType}" renderonly="true"/>
	      					<input type="hidden" value="${payEntity.loanType}" name="loanType" />
	      				</td>
	      			</tr>
	      			<tr >
	      				<td align="right" class="bg" width="15%">备注：</td>
	      				<td colspan="3">
	      					<textarea rows="4" name="remark" class="bn" cols="80" style="resize: none;" onpropertychange="if(value.length>200) value=value.substr(0,200)" readonly="true">${payEntity.remark}</textarea>
	      				</td>
	      			</tr>
	      			<tr >
	      				<td align="right" class="bg" width="15%">付款备注：</td>
	      				<td colspan="3">
	      					<textarea rows="4" name="payRemark" class="bn" cols="80" style="resize: none;" onpropertychange="if(value.length>200) value=value.substr(0,200)" readonly="true" >${payEntity.payRemark}</textarea>
	      				</td>
	      			</tr>
	      			<#if nodeCode=='dd' || nodeCode=='FKGL_CWCS' >
		      			<tr>
		      			    <td align="right" class="bg" width="15%">付款类型<span style="color: red;">*</span>：</td>
		      				<td ><@select dataSouceType="FK_PAY_TTPE" class="tabInp" value="${payEntity.payFkType}"  disabled="disabled"/>  </td>
		      				<td colspan="2" ><span style="color: red;">实付需要资金部付款,虚付无需资金部付款</span></td>
		      			</tr>
	      			</#if>
	      			<#if nodeCode == "FK_GBZJBMFK" >
		      			<tr>
		      			    <td align="right" class="bg" width="15%">付款类型<span style="color: red;">*</span>：</td>
		      				<td ><@select dataSouceType="FK_PAY_TTPE" class="tabInp" value="${payEntity.payFkType}" disabled="disabled" />  </td>
		      				<td colspan="2" ><span style="color: red;">实付需要资金部付款,虚付无需资金部付款</span></td>
		      			</tr>
	      			</#if>
	      			<input name="payFkType" value="${payEntity.payFkType}" type="hidden">
	      			<#if payEntity.payDate??>
	      			
	      			<#assign payDates=payEntity.payDate?string('yyyy-MM-dd') />
	      			
	      			</#if>
	      			<#if nodeCode=='FK_GBZJBMFK'>
	      			<tr >
	      				<td align="right" class="bg" >付款时间：</td>
	      				<td align="left" colspan="3" ><@date value="${payDates}"
							id="payDate" name ="payDate"/><span><font color="red">*</font></span></td>
	      			</tr>
	      			</#if>
	      			<#if (nodeCode == 'dd' || nodeCode == 'FKGL_CWCS' ) && payEntity.payFkType=='XF'>
		      			<tr>
		      				<td align="right" class="bg" >付款时间：</td>
		      				<td align="left" colspan="3" ><@date value="${payDates}"
								id="payDate" name ="payDate"/><span><font color="red">*</font></span></td>
		      			</tr>
	      			</#if>
	      			<#if payEntity.payFkType=="XF">
	      			<#if nodeCode=='dd' || nodeCode=='FKGL_CWCS' >
	      			<tr >
	      				<td align="right" class="bg" width="15%">付款账户<span style="color: red;">*</span>：</td>
	      				<td colspan="3">
						<select name="payFkAccount" id="payFkAccount">
	    				 <option value="">--请选择--</option>
	    				<#if bankAccountList?exists>  
			                <#list bankAccountList as key>   
			                   <option <#if key==payEntity.payFkAccount>selected="selected"</#if> value="${key}">${key}</option>
			                </#list>  
			            </#if> 
	    				</select>
						</td>
	      			</tr>
	      			</#if>
	      			</#if>
	      			<#if payEntity.payFkType=="SF">
	      			<#if nodeCode=='FK_GBZJBMFK'>
	      			<tr >
	      				<td align="right" class="bg" width="15%">付款账户<span style="color: red;">*</span>：</td>
	      				<td colspan="3">
						<select name="payFkAccount" id="payFkAccount">
	    				 <option value="">--请选择--</option>
	    				<#if bankAccountList?exists>  
			                <#list bankAccountList as key>   
			                   <option <#if key==payEntity.payFkAccount>selected="selected"</#if> value="${key}">${key}</option>
			                </#list>  
			            </#if> 
	    				</select>
						</td>
	      			</tr>
	      			</#if>
	      			</#if>
	      		</tbody>
	   		</table>
	   		</div>
	   		
	   		<#if nodeCode=='FK_GBZJBMFK'||nodeCode=='dd' || nodeCode=='FKGL_CWCS'>
		 	<div class=" mtb20 tac">
		 		<#if payEntity.payFkType=="XF" && (nodeCode=='dd' || nodeCode=='FKGL_CWCS')>
		 	    	<input type="submit" class="btn_auto_30 btn_blue"  value="保 存">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 	    </#if>
		 		<#if payEntity.payFkType=="SF" && nodeCode=='FK_GBZJBMFK'>
		 	    	<input type="submit" class="btn_auto_30 btn_blue"  value="保 存">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 	    </#if>
		 	    <#if nodeCode=='dd' || nodeCode=='FKGL_CWCS'>
		 	      <a href="javascript:void();" data-url="<@url value='/rpay/print?id=${payEntity.id}'/>" class="action-ajax-btn btn_auto_30 btn_blue">打印</a>
		 	     </#if>
	     	</div>
	     	</#if>
	 </form>
	 	</div>
 </div>
 <@js>
$(document).ready(function(){
 	$("#payAccount").selectmenu().selectmenu("menuWidget" ).addClass( "overflow" );
}
</@js>
<@jsRender/>